package lab02.test13;

/**
 * Created by Administrator on 2017/10/21.
 */
public class School extends ComputerAverage {
    double []data;
    School(){
    }
    School(double []data){
        this.data=data;
    }
    double average(double []data) {
        double sum=0;
        for(int i=0;i<data.length;i++){
            sum+=data[i];
        }
        sum=sum/data.length;
        return sum;
    }
}
